<div class="khoas view">
<h2><?php  __('Khoa');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $khoa['Khoa']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ma Khoa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $khoa['Khoa']['ma_khoa']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ten Khoa'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $khoa['Khoa']['ten_khoa']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Namhoc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($khoa['Namhoc']['id'], array('controller' => 'namhocs', 'action' => 'view', $khoa['Namhoc']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Khoa', true), array('action' => 'edit', $khoa['Khoa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Khoa', true), array('action' => 'delete', $khoa['Khoa']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $khoa['Khoa']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Khoas', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Khoa', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Namhocs', true), array('controller' => 'namhocs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Namhoc', true), array('controller' => 'namhocs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Lopcns', true), array('controller' => 'lopcns', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Lopcn', true), array('controller' => 'lopcns', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Lopcns');?></h3>
	<?php if (!empty($khoa['Lopcn'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Lopcn Maso'); ?></th>
		<th><?php __('Khoa Id'); ?></th>
		<th><?php __('Dot Id'); ?></th>
		<th><?php __('Nganh Id'); ?></th>
		<th><?php __('Hinhthuc Id'); ?></th>
		<th><?php __('Tenlop'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($khoa['Lopcn'] as $lopcn):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $lopcn['id'];?></td>
			<td><?php echo $lopcn['lopcn_maso'];?></td>
			<td><?php echo $lopcn['khoa_id'];?></td>
			<td><?php echo $lopcn['dot_id'];?></td>
			<td><?php echo $lopcn['nganh_id'];?></td>
			<td><?php echo $lopcn['hinhthuc_id'];?></td>
			<td><?php echo $lopcn['tenlop'];?></td>
			<td><?php echo $lopcn['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'lopcns', 'action' => 'view', $lopcn['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'lopcns', 'action' => 'edit', $lopcn['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'lopcns', 'action' => 'delete', $lopcn['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $lopcn['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Lopcn', true), array('controller' => 'lopcns', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
